// 第二次封装 封装的users
// 添加用户
import axios from "@/http";
export function getUsers(name,num,size){
    return axios({
        url:"/users",
        method:"get",
        params:{
            query:name,
            pagenum:num,
            pagesize:size,
        }
    })
}
// 添加用户
export function getAddUsers(data){
    return axios({
        url:"/users",
        method:"post",
        data,
    })
}



// 删除用户 

export function getdelUsers(id){
    return axios({
        url:"/users/"+id,
        method:"delete",
    })
}

// 查询用户信息
export function getqueryUsers(id){
    return axios({
        url:"/users/"+id,
        method:'get',
       
    })

}



// 编辑用户提交

export function getEditUsers(data){
    return axios({
        url:"/users/"+data.id,
        method:'put',
        data,
       
    })

}





